<%@ page import="ihotel.Reserva" %>

<table style="width:100%; border-top:none; margin-bottom: 0em;">
    <tr>
        <td style="width: 35%; padding:0.0em 0.3em;">
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'tipoQuarto', 'error')} ">
				<label for="tipoQuarto">
					<g:message code="reserva.tipoQuarto.label" default="Tipo Quarto" />		
				</label>
				<g:textField name="tipoQuarto" value="${reservaInstance?.tipoQuarto}"/>
			</div>
        
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'nome', 'error')} required">
				<label for="nome">
					<g:message code="reserva.nome.label" default="Nome" />
					<span class="required-indicator">*</span>
				</label>
				<g:textField name="nome" required="" value="${reservaInstance?.nome}"/>
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'cpf', 'error')} ">
				<label for="cpf">
					<g:message code="reserva.cpf.label" default="CPF" />		
				</label>
				<g:textField name="cpf" value="${reservaInstance?.cpf}"/>
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'email', 'error')} required">
				<label for="email">
					<g:message code="reserva.email.label" default="Email" />
					<span class="required-indicator">*</span>
				</label>
				<g:field type="email" name="email" required="" value="${reservaInstance?.email}"/>
			</div>        
        </td>        
        <td style="width: 65%; padding:0.0em 0.3em;">
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'dataInicial', 'error')} required">
				<label for="dataInicial">
					<g:message code="reserva.dataInicial.label" default="Data Inicial" />
					<span class="required-indicator">*</span>
				</label>
				<g:datePicker name="dataInicial" precision="day"  value="${reservaInstance?.dataInicial}"  />
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'dataFinal', 'error')} required">
				<label for="dataFinal">
					<g:message code="reserva.dataFinal.label" default="Data Final" />
					<span class="required-indicator">*</span>
				</label>
				<g:datePicker name="dataFinal" precision="day"  value="${reservaInstance?.dataFinal}"  />
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeQuartos', 'error')} required">
				<label for="quantidadeQuartos">
					<g:message code="reserva.quantidadeQuartos.label" default="Quant. Quartos" />
					<span class="required-indicator">*</span>
				</label>
				<g:field name="quantidadeQuartos" type="number" min="1" max="5" value="${reservaInstance?.quantidadeQuartos}" required=""/>
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeAdultos', 'error')} required">
				<label for="quantidadeAdultos">
					<g:message code="reserva.quantidadeAdultos.label" default="Quant. Adultos" />
					<span class="required-indicator">*</span>
				</label>
				<g:field name="quantidadeAdultos" type="number" min="1" max="5" value="${reservaInstance?.quantidadeAdultos}" required=""/>
			</div>
			
			<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeCriancas', 'error')} required">
				<label for="quantidadeCriancas">
					<g:message code="reserva.quantidadeCriancas.label" default="Quant. Criancas" />
					<span class="required-indicator">*</span>
				</label>
				<g:field name="quantidadeCriancas" type="number" min="0" max="3" value="${reservaInstance?.quantidadeCriancas}" required=""/>
			</div>                
        </td>        
    </tr>
</table>